﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace RadarSim
{
	public partial class TestPage1
	{
		public TestPage1()
		{
			this.InitializeComponent();

			// 在此点之下插入创建对象所需的代码。
            Speed.SpeedNum = 99999;
            List<TestBean> testData = new List<TestBean>();

            testData.Add(new TestBean("asdf", "asdf", "gfdg", "wet"));
            testData.Add(new TestBean("阿萨德", "算法", "随风倒", "该罚的"));
            testData.Add(new TestBean("阿萨德", "算法", "随风倒", "该罚的"));
            testData.Add(new TestBean("阿萨德", "算法", "随风倒", "该罚的"));
            testData.Add(new TestBean("阿萨德", "算法", "随风倒", "该罚的"));
            testData.Add(new TestBean("阿萨德", "算法", "随风倒", "该罚的"));
            this.testDataTable.SARItemsSource = testData;
		}


        /// <summary>
        /// 绑定的数据源，实例程序如下
        public class TestBean
        {
            public string Header1;
            public string Header2;
            public string Header3;
            public string Header4;

            public TestBean(string s1, string s2, string s3, string s4)
            {
                Header1 = s1;
                Header2 = s2;
                Header3 = s3;
                Header4 = s4;
            }
        }

        private void SARViewSwitcher_SARClick(object sender, MouseButtonEventArgs e)
        {
            switcher.SARIsSelected = !switcher.SARIsSelected;
        }
	}
}